<html class="x-admin-sm">
  <head>
    <meta charset="UTF-8">
    <title>人员基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
	
	<link href="css/bootstrap-theme.min.css" rel="stylesheet">
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<script src="js/jquery-3.4.1.js" type="text/javascript" charset="utf-8"></script>
	<script src="command/Bootstrap/bootstrap-3.3.0/js/bootstrap.min.js"></script>
	<script src="command/bower_components/bootbox.min.js"></script>
	<script src="command/bower_components/bootstrap-select/js/bootstrap-select.js"></script>
	<script src="command/bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>
	<script src="command/bower_components/bootstrap-table/dist/bootstrap-table.min.js"></script>
	<script src="command/bower_components/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js"></script>
	<script src="command/bower_components/moment/min/moment-with-locales.min.js"></script>
	<script type="application/javascript">
		$(function(){
			/* 新增按钮事件 */
			$("#btnNew").click(function(){
				$("#divData").modal();
			});
				/* 修改按钮事件 */
			$("#btnxg").click(function(){
				$("#divData-1").modal();
			});
		});
		</script>
  </head>
  
  <body>
	    <!-- 新增模态框处理 -->
	  <div class="modal fade" id="divData" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">姓  名</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">性  别</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">出生日期</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>	
	  						<div class="modal-body form-inline">
	  							<div class="form-group">
	  								<label class="control-label" for="">联系电话</label>
	  								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  							</div>
	  						</div>
	  						<div class="modal-body form-inline">
	  							<div class="form-group">
	  								<label class="control-label" for="">身份证号</label>
	  								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  							</div>
	  						</div>
	  						<div class="modal-body form-inline">
	  							<div class="form-group">
	  								<label class="control-label" for="">个人邮箱</label>
	  								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  							</div>
	  						</div>
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">新增</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
	  
	  <!-- 修改模态框处理 -->
	  <div class="modal fade" id="divData-1" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">姓  名</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">性  别</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">出生日期</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>	
	  						<div class="modal-body form-inline">
	  							<div class="form-group">
	  								<label class="control-label" for="">联系电话</label>
	  								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  							</div>
	  						</div>
	  						<div class="modal-body form-inline">
	  							<div class="form-group">
	  								<label class="control-label" for="">身份证号</label>
	  								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  							</div>
	  						</div>
	  						<div class="modal-body form-inline">
	  							<div class="form-group">
	  								<label class="control-label" for="">个人邮箱</label>
	  								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  							</div>
	  						</div>
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">修改</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
	  
	  
    <div class="x-nav">
      <!-- <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">演示</a>
        <a>
          <cite>导航元素</cite></a>
      </span> -->
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
          <input class="layui-input"  autocomplete="off" placeholder="请输入用户名" type="text" name="username"  maxlength="20">
          <input class="layui-input"  autocomplete="off" placeholder="性别" type="text" name="end"  maxlength="20" >
          <input type="text" name="sfzh"  placeholder="身份证号" autocomplete="off" class="layui-input" maxlength="20">
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock>
        <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>
        <button class="layui-btn" id="btnNew" type="button" >新增</button>
		<button class="layui-btn  " id="btnxg" type="button" >修改</button>
        <span class="x-right" style="line-height:40px">共有数据：88 条</span>
      </xblock>
      <table class="layui-table x-admin">
        <thead>
          <tr>
            <th>
              <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th >姓名</th>
            <th >性别</th>
            <th >祖籍</th>
            <th >出生日期</th>
            <th >联系电话</th>
			<th >个人邮箱</th>
            <th >身份证号</th>
            <th >创建时间</th>
            <th >状态</th>
            <th >删除</th>
			</tr>
        </thead>
        <tbody>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >张三</td>
            <td >男</td>
            <td >山东</td>
            <td >1997-02-12</td>
            <td >13876534892</td>
			<td>236723672@qq.com</td>
            <td >371513199702123456</td>
            <td >2019-07-03</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">在职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >王五</td>
            <td >男</td>
            <td >山西</td>
            <td >1998-03-14</td>
            <td >13876534822</td>
			<td>236333672@qq.com</td>
            <td >334513199803143256</td>
            <td >2019-07-07</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">在职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >李娜</td>
            <td >女</td>
            <td >天津</td>
            <td >1999-11-14</td>
            <td >19835765382</td>
			<td>453723672@qq.com</td>
            <td >351513199911143255</td>
            <td >2019-07-13</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">离职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >周宪</td>
            <td >男</td>
            <td >北京</td>
            <td >2000-10-11</td>
            <td >16358723422</td>
			<td>479223378@qq.com</td>
            <td >318513200010114253</td>
            <td >2019-07-18</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">在职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >王华</td>
            <td >女</td>
            <td >上海</td>
            <td >1996-05-23</td>
            <td >18357654902</td>
			<td>4387236675@qq.com</td>
            <td >35151319960523097x</td>
            <td >2019-07-20</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">在职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >李菁</td>
            <td >女</td>
            <td >深圳</td>
            <td >1997-04-30</td>
            <td >15487390210</td>
			<td>3426723647@qq.com</td>
            <td >321513199704306734</td>
            <td >2019-07-20</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">离职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >高阳</td>
            <td >女</td>
            <td >山东</td>
            <td >1998-11-28</td>
            <td >13581182951</td>
			<td>2367475754@qq.com</td>
            <td >371523199811280756</td>
            <td >2019-07-24</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">在职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td >王刚</td>
            <td >男</td>
            <td >云南</td>
            <td >1996-01-24</td>
            <td >18673452398</td>
			<td>36323666@qq.com</td>
            <td >346912199601246753</td>
            <td >2019-07-25</td>
            <td class="td-status">
              <span class="layui-btn layui-btn-normal layui-btn-mini">离职</span></td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
          
        </tbody>
      </table>
      <div class="page">
        <div>
          <a class="prev" href="">&lt;&lt;</a>
          <a class="num" href="">1</a>
          <span class="current">2</span>
          <a class="num" href="">3</a>
          <a class="num" href="">50</a>
          <a class="next" href="">&gt;&gt;</a>
        </div>
      </div>
    </div>
    <script>
      /*用户-删除*/
      function member_del(obj,id){
          layer.confirm('确认要删除吗？',function(index){
              //发异步删除数据
              $(obj).parents("tr").remove();
              layer.msg('已删除!',{icon:1,time:1000});
          });
      }

      function delAll (argument) {
        var data = tableCheck.getData();
        layer.confirm('确认要删除吗？'+data,function(index){
            //捉到所有被选中的，发异步进行删除
            layer.msg('删除成功', {icon: 1});
            $(".layui-form-checked").not('.header').parents('tr').remove();
        });
      }
    </script>

  </body>

</html>